package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.VipConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-09-04
 * @since 2019-10-06
 */
public interface VipConfigMapper extends BaseMapper<VipConfig> {
    /**
     * 获取会员套餐
     * @Author Shane
     * @Date 2019/9/421:24
     * @param
     * @return
     **/
    List<Map<String, Object>> getVips(@Param("type") Integer type);

    /**
     * 根据身份标识获取配置
     * @Author Shane
     * @Date 2019/9/510:40
     * @param
     * @return
     **/
    VipConfig selectByIdentity(@Param("identity") Integer identity);

    VipConfig selectByPid(@Param("pid") String pid);
}
